package polymorphic;

/**
 * @classname:Fish
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/29 17:53
 * @version: 0.1
 * @since:1.8
 */
public class Fish extends Animal {
    public Fish() {
    }

    public Fish(String name) {
        super(name);
    }

    @Override
    public void move() {
        System.out.println(this.getName()+"在水里游");
    }
}
